import request from '../../../../../public/js/common/api/api.js';
const FeedBackUrl = Utils.CurDomain.FeedBackUrl;
const AccountUrl = Utils.CurDomain.AccountUrl;
const SysCfgUrl = Utils.CurDomain.SysCfgUrl
const configuration = {
    contentType: 'application/json',
    dataType: 'json',
    async: true,
    dataFilter(data, type) {
        return data;
    }
}


export default class FeedbackDtlApi {
    // 接收意见建议列表
    static ppsReceiveList(eid, data) {
        return request.post(`${FeedBackUrl}/yysuggestions/h5/${eid}/list`, data);
    }
    // 接收意见建议详情
    static proposalDtls(id) {
        return request.get(`${FeedBackUrl}/yysuggestions/h5/${id}`);
    }
    // 接收抱怨投诉列表
    static comReceiveList(eid, data) {
        return request.post(`${FeedBackUrl}/yycomplaints/h5/${eid}/list`, data);
    }
    // 接收抱怨投诉详情
    static complaintDtls(id) {
        return request.get(`${FeedBackUrl}/yycomplaints/h5/${id}`);

    }
    // 获取登录用户对应的职员信息 
    static getLoginUserToStaff() {
        return request.get(`${AccountUrl}/accounts/eply`);
    }
    /**
   * 根据图片id获取图片地址
   * @param {*图片id} id 
   * @returns 
   */
    static requestFilePath(id) {
        return request.get(`${SysCfgUrl}/yyattachments/${id}/url`,);
    }
}